#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "mytablemodel.h"
#include "rowhovertableview.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    MyTableModel *model = new MyTableModel(this);
    ui->tableView->setModel(model);

    setStyleSheet("QTableView::item { \
                  border: 0px solid transparent; \
                  selection-color: black; \
              } \
              QTableView::item:hover { \
                  border: 0px solid transparent;  \
                  background: rgb(229, 243, 255); \
              } \
               \
              QTableView::item:selected { \
                  border: 0px solid transparent; \
                  background: rgb(204, 232, 255); \
              }");
}

MainWindow::~MainWindow()
{
    delete ui;
}
